// 关节映射
export const part_map_finger = {
  wrist: '手腕',
  thumb_cmc: '拇指_cmc',
  thumb_mcp: '拇指_mcp',
  thumb_ip: '拇指_ip',
  thumb_tip: '拇指_tip',
  index_finger_mcp: '食指_mcp',
  index_finger_pip: '食指_pip',
  index_finger_dip: '食指_dip',
  index_finger_tip: '食指_tip',
  middle_finger_mcp: '中指_mcp',
  middle_finger_pip: '中指_pip',
  middle_finger_dip: '中指_dip',
  middle_finger_tip: '中指_tip',
  ring_finger_mcp: '无名指_mcp',
  ring_finger_pip: '无名指_pip',
  ring_finger_dip: '无名指_dip',
  ring_finger_tip: '无名指_tip',
  pinky_finger_mcp: '小拇指_mcp',
  pinky_finger_pip: '小拇指_pip',
  pinky_finger_dip: '小拇指_dip',
  pinky_finger_tip: '小拇指_tip',
};

// 连接顺序
export const link_map_finger = [
  ['wrist', 'thumb_cmc', 'index_finger_mcp', 'middle_finger_mcp', 'ring_finger_mcp', 'pinky_finger_mcp'],
  ['thumb_cmc', 'thumb_mcp', 'thumb_ip', 'thumb_tip'],
  ['index_finger_mcp', 'index_finger_pip', 'index_finger_dip', 'index_finger_tip'],
  ['middle_finger_mcp', 'middle_finger_pip', 'middle_finger_dip', 'middle_finger_tip'],
  ['ring_finger_mcp', 'ring_finger_pip', 'ring_finger_dip', 'ring_finger_tip'],
  ['pinky_finger_mcp', 'pinky_finger_pip', 'pinky_finger_dip', 'pinky_finger_tip'],
] as (keyof typeof part_map_finger)[][];